package com.cratos.xxgram.platf.presetsecret;

import javax.persistence.*;
import org.redkale.convert.json.*;
import org.redkale.util.Comment;

/**
 *
 * @author fk
 */
@Table(comment = "密信详情")
public class SecretRecord implements java.io.Serializable {

    @Id
    @Column(comment = "100 开始")
    private int secretrecordid;

    @Column(comment = "操作用户id")
    private int userid;

    @Column(updatable = false, comment = "创建时间")
    private long createtime;

    @Column(length = 255, comment = "密信")
    private String secret = "";

    @Comment("密信人数")
    @Transient
    private int num;
    
    public void setSecretrecordid(int secretrecordid) {
        this.secretrecordid = secretrecordid;
    }

    public int getSecretrecordid() {
        return this.secretrecordid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getUserid() {
        return this.userid;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    public long getCreatetime() {
        return this.createtime;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getSecret() {
        return this.secret;
    }

    public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	@Override
    public String toString() {
        return JsonConvert.root().convertTo(this);
    }
}
